﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PSE.AuditLogging.LogEntry
{
    [Serializable]
    public class BaseLogEntry
    {
        private const int LOG_TYPE_DB_SIZE = 50;//VARCHAR

        private string _logType;
        public virtual string LogType
        {
            get
            {
                return _logType;
            }
            set
            {
                if (value != null && value.Length > LOG_TYPE_DB_SIZE)
                    throw new ArgumentException(string.Format("LogTypes length must be less than {0}.", (1 + LOG_TYPE_DB_SIZE).ToString()));

                _logType = value;
            }
        }
    }
}
